package org.kealinghornets.nxtdroid;

import org.kealinghornets.nxtdroid.NXT.NXTThread;

/**
 * Created by chuah on 11/24/14.
 */
public class clearing extends NXTThread {

    public clearing() {setNXTThreadName("Clearing");}

    public void run() {
        runMotor(PORT_A,-89);
        runMotor(PORT_B,-90);
        wait(100);
        stopMotor(PORT_A);
        stopMotor(PORT_B);
        wait(100);
        runMotor(PORT_A,50);
        runMotor(PORT_B,-50);
        stopMotor(PORT_A);
        stopMotor(PORT_B);
        wait(100);
        runMotor(PORT_A,89);
        runMotor(PORT_B,90);
        wait(1000);
        stopMotor(PORT_A);
        stopMotor(PORT_B);
        reset();
    }
}
